/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "每日计划",TableName = "DailyPlanModel")]
    public partial class DailyPlanModel:BaseEntity
    {
        /// <summary>
       ///主键id
       /// </summary>
       [Key]
       [Display(Name ="主键id")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Id { get; set; }

       /// <summary>
       ///计划编号
       /// </summary>
       [Display(Name ="计划编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string PlanCode { get; set; }

       /// <summary>
       ///订单编号
       /// </summary>
       [Display(Name ="订单编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string OrderCode { get; set; }

       /// <summary>
       ///目标日期
       /// </summary>
       [Display(Name ="目标日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime TargetDate { get; set; }

       /// <summary>
       ///日计划产量
       /// </summary>
       [Display(Name ="日计划产量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int DailyProductionTarget { get; set; }

       /// <summary>
       ///工艺路线
       /// </summary>
       [Display(Name ="工艺路线")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ProcessRoute { get; set; }

       /// <summary>
       ///班组
       /// </summary>
       [Display(Name ="班组")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Team { get; set; }

       /// <summary>
       ///早班开始时间
       /// </summary>
       [Display(Name ="早班开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime MorningshiftStarttime { get; set; }

       /// <summary>
       ///早班结束时间
       /// </summary>
       [Display(Name ="早班结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime MorningshiftEndtime { get; set; }

       /// <summary>
       ///早班1开始时间
       /// </summary>
       [Display(Name ="早班1开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime FirstmorningShiftStarttime { get; set; }

       /// <summary>
       ///早班1结束时间
       /// </summary>
       [Display(Name ="早班1结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime FirstmorningShiftEndtime { get; set; }

       /// <summary>
       ///中班开始时间
       /// </summary>
       [Display(Name ="中班开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime MiddleShiftStartTime { get; set; }

       /// <summary>
       ///中班结束时间
       /// </summary>
       [Display(Name ="中班结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime MiddleShiftEndTime { get; set; }

       /// <summary>
       ///中班1开始时间
       /// </summary>
       [Display(Name ="中班1开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime FirstmiddleShiftStartTim { get; set; }

       /// <summary>
       ///中班1结束时间
       /// </summary>
       [Display(Name ="中班1结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime FirstmiddleShiftEndTime { get; set; }

       /// <summary>
       ///晚班开始时间
       /// </summary>
       [Display(Name ="晚班开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime EveningShiftStartTime { get; set; }

       /// <summary>
       ///晚班结束时间
       /// </summary>
       [Display(Name ="晚班结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime EveningShiftEndTime { get; set; }

       /// <summary>
       ///晚班1开始时间
       /// </summary>
       [Display(Name ="晚班1开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime FirsteveningShiftStartTime { get; set; }

       /// <summary>
       ///晚班1结束时间
       /// </summary>
       [Display(Name ="晚班1结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime FirsteveningShiftEndTime { get; set; }

       /// <summary>
       ///实际每件耗时（s）
       /// </summary>
       [Display(Name ="实际每件耗时（s）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int ActualTimePerPiece { get; set; }

       /// <summary>
       ///实际产量
       /// </summary>
       [Display(Name ="实际产量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int ActualOutput { get; set; }

       /// <summary>
       ///次品数量
       /// </summary>
       [Display(Name ="次品数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int NumberofDefectiveProducts { get; set; }

       /// <summary>
       ///完成率
       /// </summary>
       [Display(Name ="完成率")]
       [DisplayFormat(DataFormatString="5,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal CompletionRate { get; set; }

       /// <summary>
       ///一次性通过率
       /// </summary>
       [Display(Name ="一次性通过率")]
       [DisplayFormat(DataFormatString="5,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal FirstpassYieldRate { get; set; }

       /// <summary>
       ///标定每件耗时（s）
       /// </summary>
       [Display(Name ="标定每件耗时（s）")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int CalibratedTimePerPiece { get; set; }

       
    }
}